package bid.entity;

import java.util.Date;

/**
 * @author oldliu
 * @since 1.0
 */
//对应 user表
public class User  {
    private long id;
    //对应表中的username列
    private String username;
    private String name;
    private String password;
    private String unit;
    private long roleid;

    ///表中没有，为了显示准备，通过关联表 userrole获得
    private String rolename;
    ///

    private String telephone;
    private String landMark;
    private Date enterdate;
    private String idcard;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public long getRoleid() {
        return roleid;
    }

    public void setRoleid(long roleid) {
        this.roleid = roleid;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getLandMark() {
        return landMark;
    }

    public void setLandMark(String landMark) {
        this.landMark = landMark;
    }

    public Date getEnterdate() {
        return enterdate;
    }

    public void setEnterdate(Date enterdate) {
        this.enterdate = enterdate;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    @Override
    public String toString() {
        return "系统管理员{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", unit='" + unit + '\'' +
                ", roleid=" + roleid +
                ", telephone='" + telephone + '\'' +
                ", landMark='" + landMark + '\'' +
                ", enterdate=" + enterdate +
                ", idcard='" + idcard + '\'' +
                '}';
    }
}
